<?php 
	$url = "http://http://www.daimajiayuan.com/sitejs-5195-1.html";

	$arr = parse_url($url);
 	
 	$footer = basename($arr['path']); 
 	
 	$result = explode('.', $footer);
 	print_r('.'.$result['1']);
 ?>